{extend name="layout_modal" /}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <!-- /.box-header -->
    <!-- form start -->
    <form role="form" action="{:url('data_update')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title" value="{$info.title}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">上级分类</label>
          <select name="pid" class="form-control">
            {volist name="Menus" id="v"}
            <option value="{$v.id}" {eq name="$info.pid" value="$v.id"}selected{/eq}>{$v.title_show}</option>
            {/volist}
          </select>
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">图片</label>
            <div class="input-group input-group-sm">
                <input type="text" class="form-control" name="thumb" id="thumb_text" value="{$info.thumb}">
                <span class="input-group-btn">
                    <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
                </span>
            </div>
            <div id="queue_thumb"></div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">简介</label>
          <textarea rows="5" style="width: 100%;" name="descrip ">{$info.descrip}</textarea>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">排序</label>
          <input type="text" class="form-control" placeholder="排序" name="listorder" value="{$info.listorder}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">状态</label>
          <div>
            <label><input type="radio" name="status" value="1" {eq name="$info.status" value="1"}checked{/eq}> 显示</label>
            <label><input type="radio" name="status" value="0" {eq name="$info.status" value="0"}checked{/eq}> 隐藏否</label>
          </div>
        </div>
      </div>
      <!-- /.box-body -->
      <input type="hidden" value="{$info.id}" name="id">
    </form>
  </div>
</div>
</section>
<!-- /.content -->
{/block}